package com;

public class Demo06 {
    public static void main(String[]args){
        compare(4,4);
        compare((byte)10,(byte)20);
        compare(20L,10L);
        compare((short)29,(short)14);
}
    public static boolean compare(int a,int b){
        System.out.println(a==b?"这两个数相等":"这两天个数不相等");
       return a==b;
    }
    public static  boolean compare(byte a,byte b){
        System.out.println(a==b?"这两个数相等":"这两天个数不相等");
        return a==b;
    }
    public static  boolean compare(short a,short b){
        System.out.println(a==b?"这两个数相等":"这两天个数不相等");
        return a==b;
    }
    public static  boolean compare(long a,long b){
        System.out.println(a==b?"这两个数相等":"这两天个数不相等");
        return a==b;
    }

}
